	
<div>
<form action="/admin/register.php" method="POST" id="register">

<label class="bglabel">Username<br />
<input name="username" value="<?=(isset($_SESSION['reg_username']) ? $_SESSION['reg_username'] : "");?>" type="text" class="input_form ui-corner-all" id="name" maxlength="20">
</label>

<label class="bglabel">Email<br />
<input name="email" type="text" value="<?=(isset($_SESSION['reg_email']) ? $_SESSION['reg_email'] : "");?>" class="input_form ui-corner-all" id="email" maxlength="60">
</label>


<label class="bglabel">Password<br />
<input name="password" type="password" class="input_form ui-corner-all" id="password" value="<?=(isset($_SESSION['reg_password']) ? $_SESSION['reg_password'] : "");?>" maxlength="20">
</label>

<label class="bglabel">Ripeti pswd<br />
<input name="password2" type="password" class="input_form ui-corner-all" id="password2" maxlength="20">
</label>

<label class="bglabel">Tipologia<br />
<select name="sex-select" id="sex-select">
	<option value="" selected>Non definito</option>
    <option value="D" <?=((isset($_SESSION['reg_sex']) && $_SESSION['reg_sex']=='D') ? "selected" : "");?>>Donna</option>
    <option value="U" <?=((isset($_SESSION['reg_sex']) && $_SESSION['reg_sex']=='U') ? "selected" : "");?>>Uomo</option>
    <option value="T" <?=((isset($_SESSION['reg_sex']) && $_SESSION['reg_sex']=='T') ? "selected" : "");?>>Trans</option>
</select>
</label>

<label class="bglabel">nato il<br />
<input type="text"  id="datepicker" class="input-mini datepicker" name="dt_nascita" value="<?=(isset($_SESSION['reg_data_nascita']) ? $_SESSION['reg_data_nascita'] : "");?>" tabindex="6">
</label>
<input type="submit" name="submit" value="registra" class="btn btn-large">
</form>
</div>
